package com.rjwh.dingdong.client.mvp.presenter.impl;

import android.content.Context;

import com.aishua.lib.task.AsResult;
import com.rjwh.dingdong.client.bean.jsonbean.ResGetMyScorePageBean;
import com.rjwh.dingdong.client.bean.localbean.GetMyScorePageBean;
import com.rjwh.dingdong.client.bean.localbean.ScoreProfile;
import com.rjwh.dingdong.client.constant.NetConstant;
import com.rjwh.dingdong.client.mvp.BasePresenter;
import com.rjwh.dingdong.client.mvp.model.impl.MoreSettingModel;
import com.rjwh.dingdong.client.mvp.presenter.IMoreSettingPresenter;
import com.rjwh.dingdong.client.mvp.view.MoreSettingView;

/**
 * @author Kay
 * @ClassName MoreSettingPresenter
 * @Description
 * @date 2016-11-25
 * @history 2016-11-25 author: description:
 */

public class MoreSettingPresenter extends BasePresenter<MoreSettingView> implements IMoreSettingPresenter {

    private MoreSettingModel model;

    public MoreSettingPresenter(Context context, MoreSettingView mMvpView) {
        super(context, mMvpView);
        this.model = new MoreSettingModel(this);
    }

    @Override
    public void onServerDataAcquired(int businessType, AsResult mAsResult, boolean isRefresh) {
    }

    @Override
    public void detachView() {
        model.detachView();
        detachViews();
    }

    /**
     * 退出登陆
     */
    @Override
    public void doSysLogout() {
        if (isViewAttached()) {
            model.doSysLogout();
        }
    }
}
